package org.wk.common.domain;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.wk.core.db.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * 
 * @ClassName	: MobilePlace
 * @Package		：org.wk.common.domain
 * @Author df.w 
 * @Create Time	：2018年5月3日 下午4:21:29
 * @Description	: 手机号归属地
 */
@Entity(name="org.wk.common.domain.MobilePlace")
@Table(name="s_sms")
public class MobilePlace extends BaseEntity{
	/**
	* @Fields serialVersionUID: long
	* @Desc TODO: 
	*/
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy = "uuid")
	private String id;

	/**
	 * 前三位
	 */
	@Column
	private String prefix;

	/**
	 * 号段
	 */
	@Column
	private String phone;
	/**
	 * 运营商 移动 联通 电信 虚拟运营商
	 */
	@Column
	private String isp;

	/**
	 * 省份
	 */
	@Column
	private String province;

	/**
	 * 城市
	 */
	@Column
	private String city;

	/**
	 * 邮编
	 */
	@Column
	private String postCode;

	/**
	 * 区号
	 */
	@Column
	private String cityCode;


	/**
	 * 行政区划编码
	 */
	@Column
	private String areaCode;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getIsp() {
		return isp;
	}

	public void setIsp(String isp) {
		this.isp = isp;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getCityCode() {
		return cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
}
